package com.juneng.mapper;

import com.juneng.entity.OrderUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.juneng.dto.OrderUserQueryDto;
import com.juneng.vo.OrderUserVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * 用户订单表 Mapper 接口
 *
 * @author zds
 * @since 2021-07-26
 */
public interface OrderUserMapper extends BaseMapper<OrderUser> {
        IPage<OrderUserVo> page(IPage page, @Param("dto")OrderUserQueryDto dto);

        Integer getPayAmount(  LocalDate time);

        Integer getPayAmountSum();

    List<OrderUserVo> getOrderUserList(@Param("dto")OrderUserQueryDto dto);
}
